<template>
  <div id="app">
    <img src="./assets/logo.png">
    <div>
        <router-view name="silder"></router-view>
        <router-view name="main"></router-view>
    </div>
  </div>
</template>

<script>
export default {
    name: 'App',
    methods:{
        goDetail(){
            // this.$router.push('/set') //写一个字符串路径

            // this.$router.push({path:'/set'})

            // this.$router.push({name:'set'})

            // this.$router.push({name:'detail',params:{num:100}})

            // this.$route.params.num 获取

            // this.$router.push({name:'detail',query:{num:100}})

            // this.$route.query.num 获取
        }
    }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
